package actiuniTest;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import actiuni.Command;
import actiuni.Copy;

import javax.swing.JMenuItem;

import org.junit.Test;

import java.awt.Toolkit;
import java.awt.datatransfer.Clipboard;
import java.awt.datatransfer.DataFlavor;
import java.awt.datatransfer.Transferable;

public class CopyTest{
	
	@Test
	public void testTitle(){
		JMenuItem c = new Copy("Copy");
		assertEquals("Name Should be Copy","Copy",c.getText());
	}
	
	
	@Test
	public void testInstance(){
		Command c = new Copy();
		assertEquals("Should be Copy","Copy",c.toString());
		assertTrue("Should be instance of JMenuItem",c instanceof JMenuItem);
	}
}
